package com.camel.base.service;

import com.alibaba.fastjson.JSONObject;
import com.camel.base.model.TbDatasource;
import com.camel.core.entity.BasePaginationEntity;
import com.camel.core.service.BaseCommonService;

import java.sql.SQLException;
import java.util.List;

/**
 * @author 86183
 * @description 针对表【tb_datasource】的数据库操作Service
 * @createDate 2023-08-09 11:02:13
 */
public interface TbDatasourceService<T extends BasePaginationEntity> extends BaseCommonService<T> {

    List<JSONObject> model(TbDatasource datasource) throws SQLException;

    List<JSONObject> table(TbDatasource datasource, String schama, JSONObject params) throws SQLException;

    List columns(TbDatasource datasource, String schama, String tableName) throws SQLException;

    String primaryKey(TbDatasource datasource, String schama, String tableName) throws SQLException;
}
